package main
{
	import flash.events.Event;
	import flash.net.URLLoader;
	
	public class AssetManager
	{
		
		private static var instance:AssetManager;
		
		private var xmlAssets:Object = {};
		
		public function AssetManager()
		{
		}
		
		public function getXML(url:String, callback:Function):void {
			var xmlAsset:XMLAsset = xmlAssets[url];
			if (xmlAsset) {
				callback(xmlAsset.data);
			} else {
				xmlAsset = new XMLAsset(url);
			} 
		}
		
		private function getXML
		
		
		
		
		public static function getInstance():AssetManager {
			if (!instance) instance = new AssetManager();
			return instance;
		}
		
		
	}
}

class XMLAsset {
	
	public var url:String;
	public var data:XML;
	
	public function XMLAsset(url:String) {
		
	}
	
	
	
}